package com.itheima.service;

import com.itheima.entity.AccountAuthentication;
import com.itheima.entity.AccountNotification;
import com.itheima.entity.CertificationRules;
import com.itheima.result.PageResult;

import java.util.List;

/**
 * 用户认证Service接口
 * 
 * @author guanhuaer
 * @date 2025-03-20
 */
public interface IAccountAuthenticationService 
{
    /**
     * 查询用户认证
     * 
     * @param id 用户认证主键
     * @return 用户认证
     */
    public AccountAuthentication selectAccountAuthenticationById(Long id);

    /**
     * 查询用户认证列表
     * 
     * @param accountAuthentication 用户认证
     * @return 用户认证集合
     */
    public PageResult selectAccountAuthenticationList(AccountAuthentication accountAuthentication);

    /**
     * 新增用户认证
     * 
     * @param accountAuthentication 用户认证
     * @return 结果
     */
    public int insertAccountAuthentication(AccountAuthentication accountAuthentication);

    /**
     * 修改用户认证
     * 
     * @param accountAuthentication 用户认证
     * @return 结果
     */
    public int updateAccountAuthentication(AccountAuthentication accountAuthentication);

    /**
     * 批量删除用户认证
     * 
     * @param ids 需要删除的用户认证主键集合
     * @return 结果
     */
    public int deleteAccountAuthenticationByIds(Long[] ids);

    /**
     * 删除用户认证信息
     * 
     * @param id 用户认证主键
     * @return 结果
     */
    public int deleteAccountAuthenticationById(Long id);

    AccountNotification selectAccountNotificationByUserId(Long userId);

    /**
     * 更新通知状态
     * @param notification
     * @return
     */
    public int updateAccountNotification(AccountNotification notification);

    AccountAuthentication selectAccountAuthenticationByUserId(Long userId);

    CertificationRules selectCertificationRulesRule(Integer userType);

    int updateCertificationRulesRule(CertificationRules rules);

    String smartAudit(AccountAuthentication accountAuthentication);
}
